<script type="text/javascript">/*<![CDATA[*/
function checkForm() {
    formErrors = false;
    if (document.post.message.value.length < 2) {
        formErrors = "L_(Empty_message)";
    }
    if (formErrors) {
        alert(formErrors);
        return false;
    } else {
        bbstyle(-1);
        return true;
    }
}
/*]]>*/</script>
<div class="table1">
<table style="height:54px; border:0; padding:10px">
 <tr>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'inbox' -->[<a href="U_(&amp;folder=inbox)">L_(Inbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=inbox)">L_(Inbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'sentbox' -->[<a href="U_(&amp;folder=sentbox)">L_(Sentbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=sentbox)">L_(Sentbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'outbox' -->[<a href="U_(&amp;folder=outbox)">L_(Outbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=outbox)">L_(Outbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'savebox' -->[<a href="U_(&amp;folder=savebox)">L_(Savebox)</a>]<!-- ELSE --><a href="U_(&amp;folder=savebox)">L_(Savebox)</a><!-- ENDIF -->&nbsp;</span></td>
 </tr>
</table>

<form action="U_()" method="post" name="post" onsubmit="return checkForm(this)" enctype="multipart/form-data" accept-charset="utf-8">

<!-- IF S_PREVIEW_BOX -->
<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
  <tr>
    <th style="height:25px;" class="thHead" colspan="2">L_(PREVIEW)</th>
  </tr>
  <tr>
    <td class="row2"><span class="genmed">L_(FROM):</span></td>
    <td style="width:100%;" class="row2"><span class="genmed">{MESSAGE_FROM}</span></td>
  </tr>
  <tr>
    <td class="row2"><span class="genmed">L_(TO):</span></td>
    <td style="width:100%;" class="row2"><span class="genmed">{MESSAGE_TO}</span></td>
  </tr>
  <tr>
    <td class="row2"><span class="genmed">L_(DATE):</span></td>
    <td style="width:100%;" class="row2"><span class="genmed">{POST_DATE}</span></td>
  </tr>
  <tr>
    <td class="row2"><span class="genmed">L_(SUBJECT):</span></td>
    <td style="width:100%;" class="row2"><span class="genmed">{POST_SUBJECT}</span></td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="row1"><span class="postbody">{PREVIEW_MESSAGE}</span></td>
  </tr>
</table>
<br style="clear:both;" />
<!-- ENDIF -->

<!-- IF ERROR_MESSAGE -->
<table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0">
    <tr>
        <td><table width="100%" cellspacing="0" cellpadding="1" border="0">
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td align="center"><span class="error">{ERROR_MESSAGE}</span></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table></td>
    </tr>
</table>
<br style="clear:both;" />
<!-- ENDIF -->

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
    <tr>
        <td class="row1"><span class="gen"><b>L_(USERNAME)</b></span></td>
        <td class="row2"><span class="genmed"><input type="text"  class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" />&nbsp;<input type="submit" name="usersubmit" value="L_(Find_username)" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
    </tr>
    <tr>
      <td class="row1" style="width:22%;"><span class="gen"><b>L_(SUBJECT)</b></span></td>
      <td class="row2" style="width:78%;"> <span class="gen">
        <input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
        </span> </td>
    </tr>
    <tr>
      <td class="row1" valign="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td><span class="gen"><b>L_(Message_body)</b></span> </td>
          </tr>
          <tr>
            <td valign="middle" align="center"> <br />
            <!-- IF SMILIES_ON--><b>L_(Emoticons)</b>{SMILIES_ON}<!-- ENDIF -->
            </td>
          </tr>
        </table>
      </td>
      <td class="row2" valign="top"><span class="gen">
        <!-- IF BBCODE_ON -->{BBCODE_ON}<!-- ENDIF -->
        <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
      </span></td>
    </tr>
    <tr>
      <td class="row1" valign="top"><span class="gen"><b>L_(Options)</b></span><br /><span class="gensmall">
				<!-- IF HTML_ON -->L_(HTML_is_ON)<!-- ELSE -->L_(HTML_is_OFF)<!-- ENDIF --><br />
				{BBCODE_STATUS}<br />
				<!-- IF SMILIES_ON -->L_(Smilies_are_ON)<!-- ELSE -->L_(Smilies_are_OFF)<!-- ENDIF -->
			</span></td>
      <td class="row2"><span class="gen"> </span>
        <table cellspacing="0" cellpadding="1" border="0">
          <!-- IF HTML_ON -->
          <tr>
            <td>
              <input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
            </td>
            <td><span class="gen">L_(Disable_HTML_pm)</span></td>
          </tr>
          <!-- ENDIF -->
          <!-- IF BBCODE_ON -->
          <tr>
            <td>
              <input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
            </td>
            <td><span class="gen">L_(Disable_BBCode_pm)</span></td>
          </tr>
          <!-- ENDIF -->
          <!-- IF SMILIES_ON -->
          <tr>
            <td>
              <input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
            </td>
            <td><span class="gen">L_(Disable_Smilies_pm)</span></td>
          </tr>
          <!-- ENDIF -->
          <!-- IF SIG_ON -->
          <tr>
            <td>
              <input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
            </td>
            <td><span class="gen">L_(Attach_signature)</span></td>
          </tr>
          <!-- ENDIF -->
        </table>
      </td>
    </tr>
    <tr>
      <td class="catbottom" colspan="2" align="center" style="height:28px;"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="L_(PREVIEW)" />&nbsp;<input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="L_(SUBMIT)" /></td>
    </tr>
  </table>

</form>
</div>
